<?php if (!defined("BASEPATH")) exit("No direct script access allowed"); ?>

<? 
if(count($searchMappedElement)) {
	foreach($searchMappedElement as $el) { ?>
		<tr>
			<td>
				<button type="button" onclick="jsMappedClick('<?=$this->db->escape_str($el["map_group_name"])?>');" class="btn btn-default btn-sm btn-block"><?=$el["map_group_name"]?></button>
			</td>
		</tr>
	<? 
	}
} else { ?>
	<tr>
		<td>There is no search result...</td>
	</tr>
	<? foreach($searchval as $el) { ?>
		<tr>
			<td>
				<button type="button" onclick="jsMappedClick('<?=$this->db->escape_str($el)?>');" class="btn btn-default btn-sm btn-block"><?=$el?></button>
			</td>
		</tr>
	<?
	}
} ?>